package cn.qzzg.common.exceptlion;


import cn.qzzg.enums.CodeEnum;

/**
 * 文件异常处理器
 */
public class FileException extends RuntimeException {
    private final CodeEnum code;

    public CodeEnum getCode() {
        return code;
    }

    public FileException(CodeEnum code) {
        super(code.getDescription());
        this.code = code;
    }
}
